<?php
    define('URL_PUBLIC_FOLDER', 'public');
    define('URL_PROTOCOL', '//');
    define('URL_DOMAIN', $_SERVER['HTTP_HOST']);
    define('URL_SUB_FOLDER', dirname($_SERVER['SCRIPT_NAME']));
    define('URL', URL_PROTOCOL . URL_DOMAIN . URL_SUB_FOLDER);

    if (ENVIRONMENT == 'development' || ENVIRONMENT == 'dev') {
        error_reporting(E_ALL);
        ini_set("display_errors", 1);
    }

    return [
        'data_path' => 'application/data/',
        'ENVIRONMENT' => 'dev',
        'db' => [
            'class' => '',
            'dsn' => '',
            'user' => '',
            'password' => '',
            'encode' => 'utf8',
            'tablePrefix' => 'api_'
        ],
        'redis' => [
            'host' => '127.0.0.1',
            'port' => 6439,
            'passwd' => 'myredis'
        ]

    ];
